<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3"/>
<title>Nya-cats: Исходный файл C:/qt/nya-cats/install/няки релиз/nya-cats/src/nya-cats/ES/ui/expreditor.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Nya-cats
   &#160;<span id="projectnumber">1.00</span>
   </div>
   <div id="projectbrief">Nya-cats</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Создано системой Doxygen 1.8.3 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Поиск');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Титульная&#160;страница</span></a></li>
      <li><a href="namespaces.html"><span>Пространства&#160;имен</span></a></li>
      <li><a href="annotated.html"><span>Классы</span></a></li>
      <li class="current"><a href="files.html"><span>Файлы</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Поиск" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Файлы</span></a></li>
      <li><a href="globals.html"><span>Список&#160;членов&#160;всех&#160;файлов</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('install_2_xD0_xBD_xD1_x8F_xD0_xBA_xD0_xB8_01_xD1_x80_xD0_xB5_xD0_xBB_xD0_xB8_xD0_xB7_2nya-cats_21df67f5940896a00c12a3b015dd49850_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Указатель</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Классы</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Пространства имен</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Файлы</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Функции</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Переменные</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Перечисления</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Элементы перечислений</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Свойства</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Макросы</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">expreditor.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="install_2_xD0_xBD_xD1_x8F_xD0_xBA_xD0_xB8_01_xD1_x80_xD0_xB5_xD0_xBB_xD0_xB8_xD0_xB7_2nya-cats_21df67f5940896a00c12a3b015dd49850.html">См. документацию.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef EXPREDITOR_H</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define EXPREDITOR_H</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &lt;QDialog&gt;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &quot;core/varmodel.h&quot;</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &lt;QHBoxLayout&gt;</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &lt;QVBoxLayout&gt;</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &lt;QComboBox&gt;</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &lt;QLabel&gt;</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &lt;QPushButton&gt;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &quot;core/datamodels.h&quot;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &lt;QStringListModel&gt;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="install_2_xD0_xBD_xD1_x8F_xD0_xBA_xD0_xB8_01_xD1_x80_xD0_xB5_xD0_xBB_xD0_xB8_xD0_xB7_2nya-cats_2f9930aea2890239c8984957328e3780e.html">mycombobox.h</a>&quot;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &quot;core/expr.h&quot;</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="install_2_xD0_xBD_xD1_x8F_xD0_xBA_xD0_xB8_01_xD1_x80_xD0_xB5_xD0_xBB_xD0_xB8_xD0_xB7_2nya-cats_2c7e4e876be568995bb904b23d07a45c3.html">saver.h</a>&quot;</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="keyword">class </span><a class="code" href="class_expr_editor.html">ExprEditor</a> : <span class="keyword">public</span> QDialog</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;{</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;    Q_OBJECT</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00021"></a><span class="lineno"><a class="code" href="class_expr_editor.html#a40396ae5bf9765a688e0ea69ab0e64ad">   21</a></span>&#160;    <span class="keyword">enum</span> <a class="code" href="class_expr_editor.html#a40396ae5bf9765a688e0ea69ab0e64ad">TypeExpr</a> {<a class="code" href="class_expr_editor.html#a40396ae5bf9765a688e0ea69ab0e64ada3122d96516765f82a871fef1ac852808">IfExpr</a>,<a class="code" href="class_expr_editor.html#a40396ae5bf9765a688e0ea69ab0e64ada43fbeb52f98a98ff33d6dfd598649e95">ThenExpr</a>};</div>
<div class="line"><a name="l00022"></a><span class="lineno"><a class="code" href="class_expr_editor.html#a1705d866529cb7d8867be3964d778ae8">   22</a></span>&#160;    <span class="keyword">enum</span> <a class="code" href="class_expr_editor.html#a1705d866529cb7d8867be3964d778ae8">TypeAction</a>{<a class="code" href="class_expr_editor.html#a1705d866529cb7d8867be3964d778ae8a49477c6c9c40badbacebc1324058435d">AddAction</a>,<a class="code" href="class_expr_editor.html#a1705d866529cb7d8867be3964d778ae8ae65a1a1fdf2b9f4d642f92314c54549f">EditAction</a>};</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;    <span class="keyword">explicit</span> <a class="code" href="class_expr_editor.html#a0419ad05b21b60dc52a7773a66772b99">ExprEditor</a>(<a class="code" href="class_expr_editor.html#a40396ae5bf9765a688e0ea69ab0e64ad">TypeExpr</a> <a class="code" href="class_expr_editor.html#a1c7b9320a532938c395d2397a09169f3">typeExpr</a>,<a class="code" href="class_expr_editor.html#a1705d866529cb7d8867be3964d778ae8">TypeAction</a> <a class="code" href="class_expr_editor.html#a21311ad2ed99205ae664fcc9e975aae3">typeAction</a>, QWidget *parent = 0);</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_expr_editor.html#a3915291eb02e7eb5204a2f07626c5b69">retranslate</a>();</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;    <a class="code" href="class_expr.html">Expr</a>* <a class="code" href="class_expr_editor.html#a2ddaedfa02379f15cebaca685b35c5cc">getExpr</a>();</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_expr_editor.html#ab032a7dc4fae43ab58efde49668213ab">selectVar</a>(QModelIndex index);</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_expr_editor.html#a1958f9085ed67eb8a810c5a5e29fafcc">selectSign</a>(QString sign);</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_expr_editor.html#af0eea4ef9f1cc6979c6ddbcd12b8a23d">selectVal</a>(QString val);</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;signals:</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_expr_editor.html#a9287f32e4b659ea721cc64bc18431dee">varAdded</a>(QString varName);</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_expr_editor.html#a26b2f380340bf8f0a3f78ea645f9fc9d">valAdded</a>(QString varName,QString value);</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="keyword">public</span> slots:</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_expr_editor.html#ace6097f735f6f3828cfcfa4ab976dcb2">onCurrentVarChanged</a>(<span class="keywordtype">int</span> inx);</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_expr_editor.html#add1683227b73a387df7f92242e6f9e49">onOkClick</a>();</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_expr_editor.html#a83f4c96905d5f7df42f1cbfe0b0d5458">onCancelClick</a>();</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_expr_editor.html#a5ae8cf51b1d65c14c6581bcdb9c85027">onOkAndReturnClick</a>();</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_expr_editor.html#a78d912cdfc95b50e4dfda9620df7e14e">reject</a>();</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_expr_editor.html#a095b233f3425980f76fa2cc0a4d02ee0">onVarContextAdded</a>(QString newVar);</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_expr_editor.html#a948252a9f0716401b89fbfff4b19ac49">onValueContextAdded</a>(QString newVal);</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <span class="keywordtype">bool</span> dataIsValid();</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    <a class="code" href="class_expr_editor.html#a40396ae5bf9765a688e0ea69ab0e64ad">TypeExpr</a>    <a class="code" href="class_expr_editor.html#a1c7b9320a532938c395d2397a09169f3">typeExpr</a>;</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <a class="code" href="class_expr_editor.html#a1705d866529cb7d8867be3964d778ae8">TypeAction</a>  <a class="code" href="class_expr_editor.html#a21311ad2ed99205ae664fcc9e975aae3">typeAction</a>;</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_expr_editor.html#a6315823c9d42e1ae65aebc327724e489">startAgain</a>;</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <span class="comment">//форма</span></div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    QVBoxLayout *<a class="code" href="class_expr_editor.html#a217e87862256514b6168f007508a2b9c">layMain</a>;</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;     QHBoxLayout    *<a class="code" href="class_expr_editor.html#a43c9a963c6e9983ee91ed192c5c3543e">layUp</a>;</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;      QVBoxLayout    *<a class="code" href="class_expr_editor.html#aaa0ac9cac3be15113f3197a5be126517">layVar</a>;</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;       QLabel          *<a class="code" href="class_expr_editor.html#aabb83efdb2d69adedc9622a8e165c77c">lbVar</a>;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;       <a class="code" href="class_my_combo_box.html">MyComboBox</a>       *<a class="code" href="class_expr_editor.html#aeba4b8d69aaeffad27becab449f597bd">cmbVar</a>;</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;      QVBoxLayout    *<a class="code" href="class_expr_editor.html#af49fb92e329600de79707e3a8e10935e">laySign</a>;</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;       QLabel          *<a class="code" href="class_expr_editor.html#ac07bdb08a648b9b304d4630e1533227a">lbSign</a>;</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;       QComboBox       *<a class="code" href="class_expr_editor.html#a18bdcf551100de6ea18ca691c84a53c8">cmbSign</a>;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;      QVBoxLayout    *<a class="code" href="class_expr_editor.html#a1a466cf67dec13e1055f8182c190896d">layVal</a>;</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;       QLabel          *<a class="code" href="class_expr_editor.html#ae9598d6fc354e4550a814cbb4df4cd25">lbVal</a>;</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;       <a class="code" href="class_my_combo_box.html">MyComboBox</a>       *<a class="code" href="class_expr_editor.html#a9e1030ee464d33d43444ceaacd4173f0">cmbVal</a>;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;     QHBoxLayout    *<a class="code" href="class_expr_editor.html#a4839aedd2329ea677bf1fc9d794fb7fb">layDown</a>;</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;      QPushButton   *<a class="code" href="class_expr_editor.html#ad5fabd441b537dd0f7a6d224651e779e">btnAddNewExpr</a>;</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;      QPushButton   *<a class="code" href="class_expr_editor.html#a8604bf3ec0dc18c57d659ab5e30cd6a3">btnOK</a>;</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;      QPushButton   *<a class="code" href="class_expr_editor.html#ab5d219b7e1f2e638cff52daca84fc51d">btnCancel</a>;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;};</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<span class="preprocessor">#endif // EXPREDITOR_H</span></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_7945a8f04e3729922298536fd68c3112.html">install</a></li><li class="navelem"><a class="el" href="dir_e1e2ba996da20cc7dbfd77ac1f1228b2.html">няки релиз</a></li><li class="navelem"><a class="el" href="dir_6eb7a72f2fcf630dd8d6fabfcab24595.html">nya-cats</a></li><li class="navelem"><a class="el" href="dir_9750a83220cb6be79319811b4d12f390.html">src</a></li><li class="navelem"><a class="el" href="dir_fc6d66ebdc26bda1005bbc6200d7d601.html">nya-cats</a></li><li class="navelem"><a class="el" href="dir_c4483c049b26061529a3609adbac7115.html">ES</a></li><li class="navelem"><a class="el" href="dir_d6773fe8ebbc5b8624278f5c56274f08.html">ui</a></li><li class="navelem"><a class="el" href="install_2_xD0_xBD_xD1_x8F_xD0_xBA_xD0_xB8_01_xD1_x80_xD0_xB5_xD0_xBB_xD0_xB8_xD0_xB7_2nya-cats_21df67f5940896a00c12a3b015dd49850.html">expreditor.h</a></li>
    <li class="footer">Документация по Nya-cats. Последние изменения: Пн 14 Янв 2013 16:33:51. Создано системой
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.3 </li>
  </ul>
</div>
</body>
</html>
